package com.rc.saas.tenant.common.log;

import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.MarkerManager;

/**
 * https://logging.apache.org/log4j/2.x/manual/markers.html
 * Created by Sven on 2021/01/23
 */
public class LogMarkers {
    //配置Marker過濾器(標記過濾器),SLEUTH_MARKER就是log4j2.xml.MarkerPatternSelector 裡的標記
    public static final Marker SLEUTH_MARKER = MarkerManager.getMarker("SLEUTH_MARKER");

    //private static final Marker SQL_MARKER = MarkerManager.getMarker("SQL");
    //private static final Marker UPDATE_MARKER = MarkerManager.getMarker("SQL_UPDATE").setParents(SQL_MARKER);
    //private static final Marker QUERY_MARKER = MarkerManager.getMarker("SQL_QUERY").setParents(SQL_MARKER);
}
